<template>
    <div class="modal-mask">
        <div class="modal-wrap">
            <div class="alert">
                <div class="alert-msg">{{alert.msg}}</div>
                <div class="alert-btn" @touchend.stop.prevent="hideAlert">确定</div>
            </div>
        </div>
    </div>
</template>
<script>
    import { mapGetters, mapActions } from 'vuex';
    export default {
        name: 'Alert',
        computed: {
            ...mapGetters(['alert']),
        },
        methods: {
            ...mapActions(['hideAlert'])
        }
    }
</script>